package com.rd.student.jiaji.class3.qinjialin;
import java.util.LinkedList;

public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        People name1=new People("wangyanbo","zhongjia","21-3");
        People name2=new People("sunguowei","zhongjia","21-3");
        People name3=new People("qinjialin","zhongjia","21-3");
        People name4=new People("zhangshixuan","zhongjia","21-3");
        People name5=new People("caiyuxin","zhongjia","21-3");
        People name6=new People("xumingze","zhongjia","21-3");
        People name7=new People("sunke","null","null");
        list.add(name1);
        list.add(name2);
        list.add(name3);
        list.add(name4);
        list.add(name5);
        list.add(name6);
        list.add(name7);
        System.out.println(list);
    }
}
class People {
    String name;
    String zhuangye;
    String banji;
    public People(String name,String zhuanye,String banji){
        this.name=name;
        this.zhuangye=zhuanye;
        this.banji=banji;

    }
    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", zhuangye='" + zhuangye + '\'' +
                ", banji='" + banji + '\'' +
                '}';
    }
}

